package com.bcd.beans;

import java.io.Serializable;
import java.sql.ResultSet;
import java.util.Date;

import com.bcd.model.ArticleType;
import com.bcd.model.AuctionType;

public abstract class Article implements Serializable{

	private static final long serialVersionUID = 1L;
	protected int _user_id;
	protected int _id;
	protected ArticleType _articleType;
	protected AuctionType _auctionType;
	protected String _title;
	protected Date _start;
	protected Date _end;
	protected float _price;
	protected String _description;
	
	public Article(ArticleType articleType){
		_articleType = articleType;
	}
	public abstract void setArticle(ResultSet rs);
	
	/**
	 * @return the _user_id
	 */
	public int get_user_id() {
		return _user_id;
	}
	/**
	 * @param _user_id the _user_id to set
	 */
	public void set_user_id(int _user_id) {
		this._user_id = _user_id;
	}
	/**
	 * @return the _id
	 */
	public int get_id() {
		return _id;
	}
	/**
	 * @param _id the _id to set
	 */
	public void set_id(int _id) {
		this._id = _id;
	}
	/**
	 * @return the _articleType
	 */
	public ArticleType get_articleType() {
		return _articleType;
	}
	/**
	 * @param _articleType the _articleType to set
	 */
	public void set_articleType(ArticleType _articleType) {
		this._articleType = _articleType;
	}
	/**
	 * @return the _auctionType
	 */
	public AuctionType get_auctionType() {
		return _auctionType;
	}
	/**
	 * @param _auctionType the _auctionType to set
	 */
	public void set_auctionType(AuctionType _auctionType) {
		this._auctionType = _auctionType;
	}
	/**
	 * @return the _title
	 */
	public String get_title() {
		return _title;
	}
	/**
	 * @param _title the _title to set
	 */
	public void set_title(String _title) {
		this._title = _title;
	}
	/**
	 * @return the _start
	 */
	public Date get_start() {
		return _start;
	}
	/**
	 * @param _start the _start to set
	 */
	public void set_start(Date _start) {
		this._start = _start;
	}
	/**
	 * @return the _end
	 */
	public Date get_end() {
		return _end;
	}
	/**
	 * @param _end the _end to set
	 */
	public void set_end(Date _end) {
		this._end = _end;
	}
	/**
	 * @return the _price
	 */
	public float get_price() {
		return _price;
	}
	/**
	 * @param _price the _price to set
	 */
	public void set_price(float _price) {
		this._price = _price;
	}
	/**
	 * @return the _description
	 */
	public String get_description() {
		return _description;
	}
	/**
	 * @param _description the _description to set
	 */
	public void set_description(String _description) {
		this._description = _description;
	}
}